<!DOCTYPE html>
<html style="height: auto;"><head>
	<title>饭桶网 - 西安外卖</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Pragma" content="no-cache">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="shortcut icon" type="image/x-icon" href="http://www.flymeal.cn/assets/images/favicon.ico">
	<link href="/Css/main.css" rel="stylesheet" type="text/css" media="all">
	<!--[if lt IE 9]>
		<link href="/assets/css/ie_all.css" rel="stylesheet" type="text/css" media="all" />
	<![endif]-->
	<!--[if lte IE 9]>
		<link href="/assets/css/resturant/ie67.css" rel="stylesheet" type="text/css"/>
	<![endif]-->
	<!--[if lte IE 6]><link href="/assets/css/ie_6.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
	<script src="/Scripts/jquery-1.js" type="text/javascript"></script>
	<script type="text/javascript" src="/Scripts/jquery.js"></script>
	<script type="text/javascript" src="/Scripts/jquery_002.js"></script>
	<script type="text/javascript" src="/Scripts/ejs-1.js"></script>
	<script type="text/javascript">
		var ISLOGIN = false;
	</script>
	<link href="/Css/jquery-ui-1.css" rel="stylesheet" type="text/css" media="all">
	<!--[if IE 6]>
	    <script type="text/javascript" src="/assets/scripts/DD.belatedPNG.0.0.8a.min.js"></script>
	    <script type="text/javascript">DD_belatedPNG.fix('div, a , li, img');</script>
	<![endif]-->
	<link href="/Css/module_noreset.css" rel="stylesheet" type="text/css" media="all">
	<link href="/Css/shopping-cart.css" rel="stylesheet" type="text/css" media="all">
	<style>
		#header .topNav .logo{
			position: relative;
		}
	</style>
	<link href="/Css/footer.css" rel="stylesheet" type="text/css">

<script id="template_addressList" type="text/template">
<% if(data.addressList != null) { %>
	<% _.each(data.addressList, function(item){  %>
		<li class="f14">
				<a  name="address" class="inline-block address-list address-radio clearFix f-orders inputRadio radioNormal" addrId="<%=item.id%>" ></a>
				<div  class="address-title  clearFix w540">
						<span  class="inline-block2" title="<%=item.address%>"><%=item.address%></span>
						<span class="inline-block2"><%=item.telephone%> <span class='short_num'><%=item.shortTelephone%></span></span>
						<div class=" fr f14 address-menu clearFix">
		                    <a href="javascript:void(0);" class="address-list-update f-orders" style="margin-right: 10px;"></a>
		                    <a href="javascript:void(0);" class="address-list-delete f14 f-orders"></a>
		               </div>

				</div>

				<div class="address-input  clearFix w540">
		               <input type="text" class="room-input f14 lh31" name="addressAli"  value="<%=item.address%>"/>
		               <input type="text" class="room-input f14 lh31" name="phoneNum"  value="<%=item.telephone%>" style="width:124px;"/>
		               <input type="text" class="room-input f14 lh31" name="shortNum"  value="<%=item.shortTelephone%>"/>
		               <a href="javascript:void(0);" class="address-list-delete f14 f-orders" style="padding-right: 17px;position: relative;right: -19px;"></a>
		        </div>
		</li>
	<% }) %>
<% }  %>
</script><script id="template_singleAddress" type="text/template">
<li class="f14">
		<a  name="address" class="inline-block address-list address-radio clearFix f-orders inputRadio radioNormal" addrId="<%=item.id%>" ></a>
		<div  class="address-title  clearFix w540">
				<span  class="inline-block2" title="<%=item.address%>"><%=item.address%></span>
				<span class="inline-block2"><%=item.telephone%> <span class='short_num'><%=item.shortTelephone%></span></span>
				<div class=" fr f14 address-menu clearFix">
                    <a href="javascript:void(0);" class="address-list-update f-orders" style="margin-right: 10px;"></a>
                    <a href="javascript:void(0);" class="address-list-delete f14 f-orders"></a>
               </div>
        </div>
		<div class="address-input  clearFix w540">
               <input type="text" class="room-input f14 lh31" name="addressAli"  value="<%=item.address%>"/>
               <input type="text" class="room-input f14 lh31" name="phoneNum"  value="<%=item.telephone%>" style="width:124px;"/>
               <input type="text" class="room-input f14 lh31" name="shortNum"  value="<%=item.shortTelephone%>"/>
               <a href="javascript:void(0);" class="address-list-delete f14 f-orders" style="padding-right: 17px;position: relative;right: -40px;"></a>
        </div>
</li>

</script></head>
<body style="height: auto;">
<input type="hidden">
<div id="container2">
		<div id="backtotop">
		<a href="#"></a>
	</div>
	<div id="feedback_btn" class="feedback_btn0"></div>
	<div id="feedback_pop" class="pop">
		<div class="c">
			<div class="t">问题反馈</div>
			<div name="step_1">
				<ul class="type">
					<li t="1" tips="请描述您的问题或想法" class="t1 active">意见</li>
					<li t="2" tips="请描述您的问题" class="t2">疑问</li>
					<li t="3" tips="请描述一下这个错误和正确的信息" class="t3">纠错</li>
					<li t="4" tips="请详细说明举报的问题，请勿恶意举报" class="t4">举报</li>
					<li t="5" tips="觉得飞饭很棒就大声的告诉我们吧，您的称赞会让我们更用心做到最好" class="t5">表扬</li>
				</ul>
				<div class="report_type">
					<b>举报原因：</b><select name="report_type">
						<option selected="selected" value="">请选择</option>
						<option value="1">内容反动</option>
						<option value="2">暴力色情</option>
						<option value="3">非法广告</option>
						<option value="4">不文明语言</option>
						<option value="5">恶意网址举报</option>
					</select><input name="report_id" value="" type="hidden">
				</div>
				<div>
					<textarea name="content" class="content" tips=" "></textarea>
				</div>
				<div class="rest_name">
					<input name="rest_name" tips="请填写餐馆名称" type="text">
				</div>
				<div class="submit btn_82_26">提交</div>
			</div>
			<div name="step_2">
				<div class="notify">为了您能够及时的得到反馈，请</div>
				<div class="login">
					<div class="sub">登录飞饭：</div>
					<div class="tip" style="color: #f00;">账号或密码输入错误，请重新输入</div>
					账号：<input value="1249857713@qq.com" name="uname" class="input_1" tips="请输入您的用户名/手机/邮箱" type="text"><br> 密码：<input name="upassword" class="input_1" type="password">
					<div class="sub">或输入常用邮箱：</div>
					邮箱：<input name="uemail" class="input_1" tips="您的常用邮箱地址" type="text">
				</div>
				<div class="submit btn_82_26">提交</div>
				<div class="clear"></div>
			</div>
			<div name="step_3">
				<div class="alertText">请稍候……</div>
			</div>
			<div name="step_4">
				<div class="alertText">问题提交成功！</div>
			</div>
			<div name="step_5">
				<div class="alertText">好像出了点小问题，请稍后重试。</div>
			</div>
			<div class="tel">客服热线：029-82582110</div>
			<div class="close">×</div>
		</div>
		<div class="mask"></div>
	</div>







<!-- <meta content="webkit" name="renderer"/> -->
<link href="/Css/header.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]>
	<link href="/assets/css/resturant/ie67.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<script src="/Scripts/jquery-1.js" type="text/javascript"></script>
<!--[if lte IE 8]>
	<script type="text/javascript" src="/assets/js/json2.min.js"></script>
<![endif]-->
<script type="text/javascript" src="/Scripts/jquery_003.js"></script>
<script type="text/javascript" src="/Scripts/jquery_004.js"></script>
<div class="g-hd f-shadow" style="position: initial;overflow: visible;">
	<div class="g-panel f-14 f-f f-fwn" style="position: initial;overflow: visible;">
		<div class="left">
			<a class="l-hd download" href="http://www.flymeal.cn/customer/mobile.html" target="_blank">手机客户端</a>
		</div>
		<div class="menu_pannel">



				@if(Auth::check())

                <div class="right m-menu-width" id="loginDown">
                        <span class="m-login" >
                            <a href="/auth/login" class="l-hd" id="login-id">{{Auth::user()->name}}</a>
                            <a href="auth/logout" class="l-hd">退出</a>
                        </span>
                    </div>
                @else
        <div class="right m-menu-width" id="loginDown">
                        <span class="m-login" >
                            <a href="/auth/login" class="l-hd" id="login-id">登录</a>
                            <a href="/auth/register" class="l-hd">注册</a>
                        </span>
                    </div>
                @endif

			<a id='m29'></a>
		</div>
		<div class="right">
			<a href="javascript:void(0);" class="l-hd" id="shoppingCartTitle">美食车(0)</a>
			<a href="{{url('orderhistory')}}" class="l-hd">我的订单</a>
			<a href="{{url('pre')}}" class="l-hd">积分换礼</a>
			<a href="#" class="f-csd line">|</a>
		</div>
		<!-- <a class="l-logo " href="http://www.flymeal.cn/" title="叫外卖 上飞饭"></a> -->
		<a class="l-logo"  href="/">
			<img src="/Images/ft_logo.gif" alt="饭桶" title="像疯一样的快!">
		</a>
	</div>
</div>
<div class="headerShadow" id="headerShadow">
	<div class="content_2">
		<div class="ameche-close f-all" id="ameche-close"></div>
		<div class="ameche-content" id="content_2">暂无信息</div>
		<div class="ameche-ok">
		</div>
	</div>
	<div class="mask"></div>
</div>
<script type="text/javascript">
function showHeaderShadow(args){
	if(args.div_=='请先登陆'){
		//timer = setInterval(timeIn3,1000);
		$('#content_2').html("您未登录!<br/><div style='font-size:14px;' >您可<a class='c-ff6931' href='/login?backUrl=/jipinbiandang' >去登录</a>，或<a class='c-ff6931' href='javascript:void(0)' onclick='showHeaderShadowHidden()' >返回抢购页面</a>.</div>");
	}else{
		$('#content_2').html(args.div_);
	}
	if(args.callback!=undefined){
		args.callback();
	}
	$('#headerShadow').css({'display':'block'});
}
var s = 5,timer = '';
function timeIn3(){
	s--;
	$('#content_2').html("您未登录,<br/>您可<a class='c-ff6931' href='/login?backUrl=/jipinbiandang' >去登录</a>，或<a class='c-ff6931' href='javascript:void(0)' onclick='showHeaderShadowHidden()' >返回抢购页面</a>.");
	if(s==0){
		window.location = "/login?backUrl=/jipinbiandang";
	}
}
function showHeaderShadowHidden(){
	$('#headerShadow').css({'display':'none'});
}
function loginID(){
	var s_ = (window.location.href.replace("http://localhost:8080",'').replace("http://172.16.180.120:8080",'').replace('http://121514.vicp.cc','').replace('https://www.flymeal.cn','').replace('http://www.flymeal.cn',''));
	if(s_!=null&&(s_.indexOf('/logout')<0)){
		$('#login-id').attr('href',$('#login-id').attr('href')+"?backUrl="+s_);
	}
}
$(function(){
	loginID();
	$('#ameche-close').click(showHeaderShadowHidden);
	var menus = {
		show:function(){
           	$("#m-menu").css({"display":"block",
                   "height":"0px"});
           	$("#m-menu").animate({
                   "height":"190"
               },200,function(){});
		}
	};
	$('.username-label').hover(function(e){
		//menus.show();
	},function(e){
		//alert(e.target.className);
	});
    $("#loginDown").click(function(e){
    	/* if($(this).find('.username-label').length>0){
    		var menu = $("#m-menu");
            if($("#m-menu").css("display") == "none"){
            	$("#m-menu").css({"display":"block",
                    "height":"0px"});
            	$("#m-menu").animate({
                    "height":"190"
                },200,function(){});
            }else{
            	$("#m-menu").hide();
            }
    	}
        e.stopPropagation(); */
        /* e.preventDefault(); */
    });
    $("#m-menu li").click(function(e){
        var path = $(this).attr('path');
        if(path){
	        window.location = '' + path;
        }
        $("#m-menu").hide();
        e.stopPropagation();
        e.preventDefault();
    });

    var cookieFS = {
    	ordersNum:function(cookie_){
    		var totalNum = 0;
    		if(cookie_.productList!=null && cookie_.productList.length>0){
    			for (var int_ = 0; int_ < cookie_.productList.length; int_++) {
					totalNum += cookie_.productList[int_].num;
				}
    		}
    		return totalNum;
    	},
    	checkCart:function(){
    		var args_ = {
   					div_:"<div class='Restdif'><div class='f-all codemobile' ></div><div><div class='t rmobit'>"+
						"<div class='t23'>您选择的菜品低于起送价！</div>"+
					"<div class='actions'><div class='btn_91_28 f-radius-4 f-fr okmobile'>确定</div></div></div></div>",
					callback:function(){
						$('.Restdif .okmobile').click(function(){
							showHeaderShadowHidden();
						});
					}
			}
			showHeaderShadow(args_);
    	}
    };

	var str =  $.cookie('shoppingCart');
	if(str!=null&&jQuery.trim(str)!=''){
		var obj = '';
		try  {
			obj = eval('(' + str + ')');
			$('#shoppingCartTitle').html('美食车(' + cookieFS.ordersNum(obj) + ')');
		}catch(exception){
			$('#shoppingCartTitle').html('美食车(0)');
			return;
		}
	}else{
		$('#shoppingCartTitle').html('美食车(0)');
	}

	/*仿↑:计算购物车合计商品数量-------------------------------------------------
	if(str!=null&&jQuery.trim(str)!=''){
		var obj = '';
		try  {
			obj = eval('(' + str + ')');
			$('#shoppingCartNum').html(cookieFS.ordersNum(obj));
		}catch(exception){
			$('#shoppingCartNum').html(0);
			return;
		}
	}else{
		$('#shoppingCartNum').html(0);
	}
	*/

	orderMsgs.initFromCookie();
	$("#shoppingCartTitle").click(function(e){
		e.preventDefault();
		var meishic = $.cookie('shoppingCart');
		if(meishic==null){
			var id_={supplierId:null,productList:[]};
			$.cookie('shoppingCart', JSON.stringify(id_), { path: '/', expires: 60*60*12 })
		}/* else{
			cookieFS.checkCart();
		} */
		window.location = "/shoppingCart";
	});
});
$(document).bind('click',function(ev){
    var ev=ev||window.event;
    var elem=ev.target||ev.srcElement;
    if(elem.id!="m-menu"){
        var menu = $("#m-menu");
        if(menu.css("display") !== "none"){
           //menu.hide();
        }
    }
    if($(elem).parents('#menu-catalog').length>0){
    	return false;
    }
    if(($(elem).parents('#list-detail').length==0)){
        $("#list-detail").hide();
    }
});


var orderMsgs = new orderMsgs();

function getCustomerId(){
	if($('#customerId').length!=0){
		return $('#customerId').val();
	}else{
		return "-1";
	}
}

function setCustomerMsg(customerMsg){
	var strHtml = '<ul>';
	var showFlag = 0;
	$('#msg').empty();
	if(customerMsg == null || trim(customerMsg) == ''){
		$('#msg').hide();
	}else{
		var msgs = customerMsg.split(';');
		for(var i=0; i<msgs.length; i++){
			var strs = msgs[i].split(':');
			if(msgs[i] == null || trim(msgs[i]) == ''){
				continue;
			}else if(strs[0] == 'unreadSiteMail'){
				if(parseInt(strs[1]) > 0){
					strHtml += '<li>' + strs[1] + '条新的站内信，<a id="siteMail" href="' + getRootPath() + '/my/message">点击查看</a></li>';
					showFlag++;
				}
			}else if(strs[0] == 'unapprovalOrder'){
				if(parseInt(strs[1]) > 0){
					strHtml += '<li>' + strs[1] + '个未评价订单，<a id="apprivalOrder" href="' + getRootPath() + '/my/orderHistory">点击查看</a></li>';
					showFlag++;
				}
			}else{
				switch(strs[1]){
					case '3':strs[1] = '已接收';showFlag++;break;
					case '4':strs[1] = '已派送';showFlag++;break;
					case '5':strs[1] = '已取消';showFlag++;break;
				}
				strHtml += '<li>1份订单' +strs[1] + '，<a id="' + strs[0] + '" class="diliveryOrder">点击查看</a></li>';
			}
		}
		if(showFlag<=0){
			return;
		}
		strHtml += "</ul>";
 		strHtml += '<a href="javascript:void(0);" class="nn-ce" id="crossD"></a>';
		$('#msg').append(strHtml);

		$('.diliveryOrder').unbind('click');
 		$('.diliveryOrder').click(function(){
 			var swf = getSWF('pushCustomerMsg');
 			swf.deleteOrderMsg(getCustomerId(), $(this).attr('id'));
			window.location = getRootPath() + '/my/todayOrder';
 	 	});

 		$('#crossD').unbind('click');
 		$('#crossD').click(function(){
 			$('#msg').hide();
 	 	});

		$('#msg').show();
	}
}
function getSWF(movieName){
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        return window[movieName];
    }
    else
    {
        return document[movieName];
    }
}
function orderMsgs(){
	this.customerId = null;
	this.msgs = new Array();
	this.initFromCookie = function(){
		var str =  $.cookie('orderMsgs');
		if(str!=null&&jQuery.trim(str)!=''){
			var obj = '';
			try  {
				obj = eval('(' + str + ')');
			}catch(exception){
				this.customerId = null;
				this.msgs = new Array();
				this.refrushCookie();
				return;
			}
			this.customerId = obj.customerId;
			this.msgs = obj.msgs;
		}else{
			this.customerId = null;
			this.msgs = new Array();
			this.refrushCookie();
		}
	};
	this.refrushCookie = function(){
		$.cookie('orderMsgs', JSON.stringify(this), { path: '/', expires: 60*60*4 });
	};
}

function orderMsg(){
	this.orderSequence = null;
	this.orderStatus = null;
}

/*----------------------------------------
 * 说明：javascript的加减乘除结果会有误差，这个函数返回较为精确的结果。
 ----------------------------------------*/
//除法函数
//用法：accDiv(arg1,arg2)
//@return arg1除以arg2的精确结果
//@remark 本函数压缩后可能出现t1、t2未初始化问题
function accDiv(arg1,arg2){
	var t1=0,t2=0,r1,r2;
	try{t1=arg1.toString().split(".")[1].length;}catch(e){}
	try{t2=arg2.toString().split(".")[1].length;}catch(e){}
	with(Math){
		r1=Number(arg1.toString().replace(".",""));
		r2=Number(arg2.toString().replace(".",""));
		return (r1/r2)*pow(10,t2-t1);
	}
}
//乘法函数
function accMul(arg1,arg2){
	var m=0,s1=arg1.toString(),s2=arg2.toString();
	try{m+=s1.split(".")[1].length;}catch(e){}
	try{m+=s2.split(".")[1].length;}catch(e){}
	return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m);
}
//加法函数
function accAdd(arg1,arg2){
	var r1,r2,m;
	try{r1=arg1.toString().split(".")[1].length;}catch(e){r1=0;}
	try{r2=arg2.toString().split(".")[1].length;}catch(e){r2=0;}
	m=Math.pow(10,Math.max(r1,r2));
	return (arg1*m+arg2*m)/m;
}
//减法函数
function accSub(arg1,arg2){
    var r1,r2,m,n;
    try{r1=arg1.toString().split(".")[1].length;}catch(e){r1=0;}
    try{r2=arg2.toString().split(".")[1].length;}catch(e){r2=0;}
    m=Math.pow(10,Math.max(r1,r2));
    //动态控制精度长度
    n=(r1>=r2)?r1:r2;
    return ((arg1*m-arg2*m)/m).toFixed(n);
}
//js中的toFixed方法也有精度问题
Number.prototype.toFixed=function(len){
	var add = 0,s;
	var s1 = this + "";
	var start = s1.indexOf(".");
	if(s1.substr(start+len+1,1)>=5){add=1;}
	var temp = Math.pow(10,len);
	s = Math.floor(this * temp) + add;
	return s/temp;
};
</script>

	<div style="width: 965px;margin:15px auto;"><!-- <h1>我的美食车</h1> --></div>


			<div id="container">
				<div id="hiderprops" style="display: none">
					<input id="lockToken" name="lockToken" value="6a64e552-fa0c-4900-abd5-863e5dc51d91" type="hidden">
				</div>

				<div class="order">
					<div class="left_490 f-shadow-con">
						<!-- <a style="display: inline-block;width: 490px;"> -->
							<div class="order-title" style="border-bottom: 1px solid #e7d4b8;padding-left: 0;">
								<a href="/caiguan/1" id="resturantUrl">


											<img src="/Images/f682e268394c40b38129558958352f56.png" height="54px" width="54px">



									<h1 class="inline-block f18">{{$stores->sname}}</h1>
								</a>
								<div></div><span style="font-size: 14px !important;">订单详情</span>
							</div>
						 <!-- </a> -->
						<div style="background: #fffef5;">
							<ul class="list-unstyled order-menu clearFix order-tt">
								<li class="order-frice" style="color: #ff8253;">菜品</li>
								<li class="order-price" style="color: #ff8253;">单价</li>
								<li class="order-num" style="color: #ff8253;">数量</li>
							</ul>
						</div>
						<div id="order-ul-list">

									@foreach($meals as $k => $m)

										<a href="javascript:void(0);" class="block c">

											<ul class="list-unstyled order-menu clearFix">

												<li class="order-frice" title="双味鱼头">
													{{$m['mname']}}
												</li>
												<li class="order-price">
										      		¥<span>
										      			{{$m['mprice']}}
										      		</span>
												</li>
												<li class="order-num order-num-height">
													<!-- <i class="minus f-orders" style="padding-right: 17px;"></i> -->
												@foreach($num as $nk => $nv)
													@if($k == $nk)
													<span class="num-if">{{$nv[0]}}</span>
													@endif
												@endforeach
													<!-- <i class="plus f-orders" style="padding-right: 17px;"></i> -->
												</li>

											</ul>
										</a>
									@endforeach

									<a href="javascript:void(0);" class="block c" style="border-bottom: 1px #dedede dashed;">
										<ul class="list-unstyled order-menu clearFix">
											<li class="order-frice" style="color: #ff6931;">合计</li>
											<li class="order-price">
										      		¥<span class="f-18 price">
										      			{{$totalValue}}
										      		</span>
											</li>
											<li class="order-num order-num-height">
													<span class="num-if" id="shoppingCartNum">2</span>
											</li>
										</ul>
									</a>
									<a href="javascript:void(0);" class="block">
										<ul class="list-unstyled order-menu clearFix" style="margin-top: 10px;">
											<li class="order-frice"></li>
											<li class="order-price" style="width: 120px;">
												     餐盒费：￥ <span class="fc-ff6931">0.0</span>
											</li>
											<li class="order-num order-num-height">
												<span class="num-if"></span>
											</li>
										</ul>
									</a>
									<a href="javascript:void(0);" class="block">
										<ul class="list-unstyled order-menu clearFix">
											<li class="order-frice"></li>
											<li class="order-price" style="width: 120px;">
												 送餐费：￥ <span class="fc-ff6931">0.0</span>
											</li>
											<li class="order-num order-num-height">
												<span class="num-if"></span>
											</li>
										</ul>
									</a>
									<a href="javascript:void(0);" class="block">
										<ul class="list-unstyled order-menu clearFix">
											<li class="order-frice"></li>
											<li class="order-price" style="width: 140px;">
												<span style="color:#ff6931;font-size: 18px;"> 应付：￥{{$totalValue}}</span>
											</li>
											<li class="order-num order-num-height">
												<span class="num-if"></span>
											</li>
											<li class="order-total">
											</li>
										</ul>
									</a>
									<a href="javascript:void(0);" class="block">
										<ul class="list-unstyled order-menu clearFix">
											<li class="order-frice"></li>
											<li class="order-price" style="width: 140px;">
												 获得积分：{{$totalValue*10}}
											</li>
											<li class="order-num order-num-height">
												<span class="num-if"></span>
											</li>
										</ul>
									</a>
								<div class="clearFix mt30">

								</div>

							</div>
							<div class="left_bottom">
							</div>
						<div class="left-right-footer"></div>
					</div>

					<div class="right_490 f-shadow-con">
							<div class="order order-info">
								<a style="display: inline-block;width: 490px;cursor: default;">
										<h1 class="inline-block f18" style="margin: 15px 20px;">收餐信息</h1>
								</a>
								<ul class="list-unstyled room" id="currentAddress" style="margin-bottom: 15px;">
									<li class="clearFix" id="selectedAddress" style="margin-bottom: 8px;overflow: visible;">


											<a class="info_a">
													<div>
														<span class="block fl room-title p17 f-16" style="cursor: default;">收餐地址 </span>
														<input id="currentInputAddress" class="room-input" name="address" placeholder="输入收餐地址" style="top: 7px;font-size: 14px;line-height: 31px;" type="text">
														<span class="fc-ff6931 sginstar">*</span>
														<div class="tips" style="margin: 0;text-indent: 0px;color: #FF3B30;cursor: default;height: 23px;top: 7px;"></div>
													</div>
													<div style="overflow: visible;">
														<span class="block fl room-title p17 f-16" style="cursor: default;">收餐电话</span>
														<input id="currentInputTel" style="width:145px;top: 7px;font-size: 14px;line-height: 31px;" class="room-input tel" name="tel" placeholder="输入手机号" type="text">
														<span class="fc-ff6931 sginstar">*</span>
														<input id="currentInputShortTel" class="room-input shortTel" name="shortTel" style="line-height: 31px;font-size: 14px;width:123px;margin-left: 4px;top: 7px;" placeholder="固话或短号（选填）" type="text">
														<div class="tips_phone" style="cursor: default;cursor: default;height: 17px;top: 7px;"></div>
													</div>
											</a>



									</li>

									<li class="clearFix">
										<span class="block fl room-title2 p17 f-16" style="padding-top: 7px;">送餐时间
									</span>

										<div class="fl room-res">
											<select class="sendTime f-sel" style="line-height:36px;">
												<option selected="selected">立即送出</option>
												<script>
													var FIFTEEN_MINUTES = 15 * 60 * 1000;

													function complement(str) {
														if (String(str).length == 1) {
															str = '0' + str;
														}
														return str;
													}

													function insertSendTimeOption(send, close) {
														var sendTime = send.getTime();
														var closeTime = close.getTime();
														var gap = sendTime % FIFTEEN_MINUTES;
														if (gap != 0) {
															sendTime += FIFTEEN_MINUTES - gap;
														}
														var difference = closeTime - sendTime;
														for (var i = 0; i <= difference / FIFTEEN_MINUTES; i++) {
															var t = new Date(sendTime + FIFTEEN_MINUTES * i);
															var text = complement(t.getHours()) + ':' + complement(t.getMinutes());
															var option = $('<option>', {
																text : text
															});
															$('.sendTime').append(option);
														}
													}

													var openAmStr = '10:30'.split(':');
													var sendAmStr = '10:30'.split(':');
													var closeAmStr = '12:00'.split(':');
													var openPmStr = '12:00'.split(':');
													var sendPmStr = '12:30'.split(':');
													var closePmStr = '21:00'.split(':');
													var nowTime = new Date();
													var now = new Date(1970, 0, 1, nowTime.getHours(), nowTime.getMinutes());
													var openAm = new Date(1970, 0, 1, openAmStr[0], openAmStr[1]);
													var sendAm = new Date(1970, 0, 1, sendAmStr[0], sendAmStr[1]);
													var closeAm = new Date(1970, 0, 1, closeAmStr[0], closeAmStr[1]);
													var openPm = new Date(1970, 0, 1, openPmStr[0], openPmStr[1]);
													var sendPm = new Date(1970, 0, 1, sendPmStr[0], sendPmStr[1]);
													var closePm = new Date(1970, 0, 1, closePmStr[0], closePmStr[1]);

													if (openAm<=now && closeAm>now) {
														insertSendTimeOption(sendAm < now ? now : sendAm, closeAm);
													} else if (openPm<=now && closePm>now) {
														insertSendTimeOption(sendPm < now ? now : sendPm, closePm);
													}
												</script><option>19:15</option><option>19:30</option><option>19:45</option><option>20:00</option><option>20:15</option><option>20:30</option><option>20:45</option><option>21:00</option>
											</select>
										</div>
										</li>
									<li class="clearFix" style="margin-bottom: 10px;"><span class="block fl room-title2 p17">
											<span class="f-16">支付方式</span>
									</span>
										<div class="fl room-res" style="margin-bottom: -8px;">
											<ul class="list-unstyled radioBase room-pay clearFix payType">
												<li class="radioItem active offline f-orders normal_btn" style="border:2px solid rgb(255,105,49);">餐到付款</li>






														<!-- <li class="radioItem online f-orders normal_btn"><a href="javascript:void(0);%20f-orders">在线支付</a></li> -->




											</ul>
										</div></li>
									<li class="clearFix">
										<span class="block fl p17 room-title f-16" style="text-indent: 31px;">备注</span>
										<div class="fl">
											<div style="margin-left: 1px;">
												<textarea placeholder="说点什么" class="input-order " id="input-order" name="remarks" maxlength="140" style="height: 56px;color: #808080;line-height: 110%;overflow: hidden;"></textarea>
												<ul class="list-unstyled  clearFix list-desc " id="list-desc">
													<li>不要辣</li>
													<li>多加米</li>
													<li>不要蒜</li>
													<li>不要香菜</li>
												</ul>
											</div>
										</div>
									</li>
								</ul>
								<a style="color:#fff;text-decoration:none;" href="{{url('order')}}"><button class="btn_116_36 btnBase f20 confirmOrder btn_orderConfirm">确认下单</button></a>
								<div class="promption-info" style="display:none;"></div>
								<div class="confirming" style="display: none;margin-left: 108px;">正在提交订单，请等待…</div>
							</div>
					</div>
			</div>
			<!-- 地址弹出层 -->
			<div id="addressLayer" class="addressLayer f-shadow-con">

				<div class="address-header" style="overflow: visible;">
					<h2 class="inline-block fl f18">
						编辑收餐地址
					</h2>
					<span id="errorTip" class="room-input-errorTip"></span>
					<a href="javascript:void(0);" class="fr inline-block f14" id="addAddress" style="font-size: 16px;">添加新地址</a>
				</div>
				<form id="addressForm">
					<!-- 添加地址 -->
					<ul class="list-unstyled address-add f16">
						<li style="padding: 2px 0 2px 16px;">
							<a name="address" class="inline-block address-list address-radio clearFix f-orders inputRadio radioNormal"></a>
							<!-- <input type="radio" name="address" class="address-list inline-block" /> -->
							<div class="inline-block w540" style="margin-left: 10px;width: 534px;">
								<input class="room-input f14 lh31" name="addressAli" placeholder="外卖送餐地址" type="text">
								<input class="room-input f14 lh31" name="phoneNum" placeholder="手机号码" style="width: 124px" type="text">
								<input class="room-input f14 lh31" name="shortNum" placeholder="固话或短号（选填）" style="width: 124px" type="text">
								<a href="javascript:void(0);" class="address-list-cancel f14 f-orders" style="padding-right: 17px;position: relative;right: -14px;display: inline;"></a>
							</div></li>
					</ul>
					<!-- 地址列表 -->
					<ul class="list-unstyled address-list-ul f16 mb20 dumascroll">



</ul>

					<div class="tc">
						<button class="btnBase savebtn mr-20 yuanjiao" style="margin-right: 15px;" id="savebtn" type="button">保存</button>
						<a href="javascript:void(0);" class="btnBase cancelbtn2 yuanjiao" id="cancelbtn" style="color: #FFF;">取消</a>
					</div>
				</form>
			</div>


			<div id="mask" class="mask"></div>

			<!-- <div id="invalidOrder_pop" class="pop">
				<div class="c">
					<a class="close" href="javascript:void(0)" style="float: right; margin-right: 10px">X</a>
					<div class="t">
						<div class="icon"></div>
						提交订单出错
					</div>
					<div class="t2">您需要返回并重新挑选美食</div>
					<div class="actions">
						<div class="btn_91_28 backBtn">返回原餐馆</div>
					</div>
				</div>
				<div class="mask"></div>
			</div> -->
			</div>




</div>
<div class="back" data-url="feifantiyandian" id="back" style="top: 94px; left: 114.5px; display: block;">
</div>
<div style="position: relative;" class="footer">
    <div class="g-ft">
        <div class="normal f-f f-14">
            <div class="con">
                <div class="left">
                    <div>
                        <a href="javascript:void(0);" class="l-ft feedback_btn0">新版反馈</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="http://www.flymeal.cn/my/openShop" class="l-ft">我要开店</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="http://www.flymeal.cn/about/us" class="l-ft">联系我们</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="http://www.flymeal.cn/about/recruit" target="_blank" class="l-ft">招聘精英</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="http://www.flymeal.cn/about/problems" class="l-ft">帮助中心</a>
                    </div>
                    <div class="icp">© 2009 - 2014  飞饭  陕ICP备10006969号</div>
                </div>
                <div class="left">
                    <div class="center"><a href="http://wljg.xags.gov.cn/bscx.do?method=hddoc&amp;id=61013100001555" class="f-img" border="0"></a></div>
                </div>
                <div class="right">
                    <a href="http://www.flymeal.cn/customer/mobile.html?ios=1" target="_blank"><img src="/Images/d-apple.png"></a>
                    <a href="http://www.flymeal.cn/customer/mobile.html" target="_blank"><img src="/Images/d-android.png"></a>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="feedback_pop" class="pop f-ff-my">
	<div class="c">
		<div class="t">问题反馈</div>
		<div name="step_1">
			<ul class="type">
				<li t="1" tips="请描述您的问题或想法" class="t1 active">意见</li>
				<li t="2" tips="请描述您的问题" class="t2">疑问</li>
				<li t="3" tips="请描述一下这个错误和正确的信息" class="t3">纠错</li>
				<li t="4" tips="请详细说明举报的问题，请勿恶意举报" class="t4">举报</li>
				<li t="5" tips="觉得飞饭很棒就大声的告诉我们吧，您的称赞会让我们更用心做到最好" class="t5">表扬</li>
			</ul>
			<div class="report_type"><b>举报原因：</b><select name="report_type">
				<option selected="selected" value="">请选择</option>
				<option value="内容反动">内容反动</option>
				<option value="暴力色情">暴力色情</option>
				<option value="非法广告">非法广告</option>
				<option value="不文明语言">不文明语言</option>
				<option value="恶意网址举报">恶意网址举报</option>
			</select><input name="report_id" value="" type="hidden"></div>
			<div><textarea name="content" class="content" tips=" "></textarea></div>
			<div class="rest_name"><input name="rest_name" tips="请填写餐馆名称" type="text"></div>
			<div class="submit btn_82_27 btn_82_26">提交</div>
		</div>
		<div name="step_2">
			<div class="notify">为了您能够及时的得到反馈，请</div>
			<div class="login">
				<div class="sub">登录飞饭：</div>
				<div class="tip" style="color:#f00;">账号或密码输入错误，请重新输入</div>
				账号：<input name="uname" class="input_1" tips="请输入您的用户名/手机/邮箱" type="text"><br>
				密码：<input name="upassword" class="input_1" type="password">
				<div class="sub">或输入常用邮箱：</div>
				邮箱：<input name="uemail" class="input_1" tips="您的常用邮箱地址" type="text">
			</div>
			<div class="submit btn_82_27 btn_82_26">提交</div>
			<div class="clear"></div>
		</div>
		<div name="step_3">
			<div class="alertText">请稍候……</div>
		</div>
		<div name="step_4">
			<div class="alertText">问题提交成功！</div>
		</div>
		<div name="step_5">
			<div class="alertText">好像出了点小问题，请稍后重试。</div>
		</div>
		<div class="tel">客服热线：029-82582110</div>
		<div class="close">×</div>
	</div>
	<div class="mask"></div>
</div>
<div style="display:none;"><script src="/Scripts/stat.php" language="JavaScript"></script><script src="/Scripts/core.php" charset="utf-8" type="text/javascript"></script><a href="http://www.cnzz.com/stat/website.php?web_id=2048701" target="_blank" title="站长统计">站长统计</a></div>
	<script type="text/javascript" src="/Scripts/main.js"></script>
	<script type="text/javascript" src="/Scripts/jquery-ui-1.js"></script>
	<script type="text/javascript" src="/Scripts/underscore-min.js"></script>
	<script type="text/javascript" src="/Scripts/app.js"></script>
	<script type="text/javascript">
		jQuery.fn.placeholder = function() {
			var i = document.createElement('input'), placeholdersupport = 'placeholder' in i;
			if (!placeholdersupport) {
				var inputs = jQuery(this);
				inputs.each(function() {
					var input = jQuery(this), text = input.attr('placeholder'), pdl = 0, height = input
							.outerHeight(), width = input.outerWidth(), placeholder = jQuery('<span class="phTips">'
							+ text + '</span>');
					try {
						pdl = input.css('padding-left').match(/\d*/i)[0] * 1;
					} catch (e) {
						pdl = 5;
					}
					placeholder.css({
						'margin-left' : -(width - pdl),
						'height' : 31,
						'line-height' : 31 + "px",
						'font-size': '14px',
						'position' : 'absolute',
						'color' : "#cecfc9",
						'font-family' : "\"Microsoft YaHei\",\"微软雅黑\",\"Microsoft JhengHei\"",
						'padding' : '0px 0'
					}).addClass('ietop7');
					placeholder.click(function() {
						input.focus();
					});
					if (input.val() != "") {
						placeholder.css({
							display : 'none'
						});
					} else {
						placeholder.css({
							display : 'inline'
						});
					}
					placeholder.insertAfter(input);
					input.keyup(function(e) {
						if (jQuery(this).val() != "") {
							placeholder.css({
								display : 'none'
							});
						} else {
							placeholder.css({
								display : 'inline'
							});
						}
					});
				});
			}
			return this;
		};
	</script>
	<script type="text/javascript" src="/Scripts/orderConfirmNew.js"></script>
	<script type="text/javascript" src="/Scripts/shopping-cart.js"></script>
	<script type="text/javascript">

function resetFooter_2(){
	 if($("#container2").length==1){
	    	var arg_css = {'height':'auto'};
	    	if(($("#container2").height()+$("#container2").offset().top+130)>$(window).height()){
	    		$('.footer').css({'position':'relative'});
	    		arg_css.height = 'auto';
	    		$('body').css(arg_css);$('html').css(arg_css);
	    	}else{
	    		arg_css.height = '100%';
	    		$('.footer').css({'position':'absolute'});
	    		$('body').css(arg_css);$('html').css(arg_css);
	    	}
	    }
}
var feedback = {
		isLogin: typeof(ISLOGIN) == 'undefined' ? false : ISLOGIN,
		init: function(){
			$('.feedback_btn0').click(function(){
				feedback.isLogin = $('#loginHref').length > 0 ? false: true;
				$('#feedback_pop [name^=step_]').hide();
				$('.tip').hide();
				$('#feedback_pop [name=step_1]').show();
				var t = $(document).scrollTop()+$(window).height()/2-150;
				$('#feedback_pop .c').css('top', t+'px');
				$('#feedback_pop').show();
				if($('#feedback_pop [name=content]').hasClass('inputTips')) $('#feedback_pop .type li:first').click();
			});
			$('#feedback_pop .type li').click(function(){
				$('#feedback_pop .type li').removeClass('active');
				$(this).addClass('active');
				var t = $(this).attr('t');
				var content = $('#feedback_pop [name=content]');
				content.attr('tips', $(this).attr('tips')).removeClass('s');
				if(content.hasClass('inputTips')) content.val('').focusout();
				$('#feedback_pop .rest_name, #feedback_pop .report_type').hide();
				if(t == 3) {
					$('#feedback_pop .rest_name').show();
					content.addClass('s');
				}
				else if(t == 4) {
					$('#feedback_pop .report_type').show();
					content.addClass('s');
				}
			});
			$('#feedback_pop .submit').click(function(){
				var wrong = false;
				$('#feedback_pop [name=step_1] :input:visible').each(function(){
					if(trim($(this).val()) == '' || $(this).hasClass('inputTips')) {
						alert('请填写完整必要内容。');
						wrong = true;
						return false;
					}
				});
				if(wrong) return;
				if(feedback.isLogin) feedback.submit();
				else if($('#feedback_pop [name=step_1]').css('display') == 'none') {
					var uname = $('#feedback_pop [name=uname]');
					var upassword = $('#feedback_pop [name=upassword]');
					var uemail = $('#feedback_pop [name=uemail]');
					if((uname.val() == '' || upassword.val() == '' || uname.hasClass('inputTips') || upassword.hasClass('inputTips')) && (uemail.val() == '' || uemail.hasClass('inputTips'))) {
						alert('请至少选择一种方式。');
						return;
					}
					feedback.submit(uname.val(), upassword.val(), uemail.val());
				}
				else {
					$('#feedback_pop [name^=step_]').hide();
					$('#feedback_pop [name=step_2]').show();
					if($.browser.msie && $.browser.version < 7) $('#feedback_pop .tel').hide().show();
				}
			});
		},
		submit: function(uname, upassword, uemail) {
			$('#feedback_pop [name^=step_]').hide();
			var params = {
				t: 0,
				q_cat: $('#feedback_pop .type .active').attr("t"),
				q_content: $('#feedback_pop [name=content]').val(),
				q_report_type:null,
				q_report_id:0,
				q_rest_name:null,
				uname:null,
				upassword:null,
				uemail:null
			};
			var report_type = $('#feedback_pop [name=report_type]').val();
			var report_id = $('#feedback_pop [name=report_id]').val();
			var rest_name = $('#feedback_pop input[name=rest_name]').val();
			var page_rest_name = $("#companyName").val();
			if(report_type != '') params.q_report_type = report_type;
			if(report_id != '') params.q_report_id = report_id;
			if(rest_name != '') {
				params.q_rest_name = rest_name;
			} else {
				params.q_rest_name = page_rest_name;
			}
			if(!feedback.isLogin) {
				if(uname != '' && upassword != '') {
					params.t = 1;
					params.uname = uname;
					params.upassword = upassword;
				}
				else {
					params.t = 2;
					params.uemail = uemail;
				}
			}
			$.ajax({
		        url : getRootPath()+'/customerajax/feedbackinfo!addFeedback.action',
		        data: params,
		        cache : false,
		        async : true,
		        type : "POST",
		        dataType : 'json',
		        beforeSend	: function(xmlHttpRequest){
		        	$('#feedback_pop [name=step_3]').show();
				},
		        success : function (data){
		        	$('#feedback_pop [name=step_3]').hide();
		        	feedback.done(data);
		        },
		        error	:	function(){
		        	$('#feedback_pop [name=step_5]').show();
		        }
		    });
		},
		done: function(d) {
			if(d.errorCode != '') {
				$('#feedback_pop [name=step_2]').show();
				$('.tip').show();
				return;
			}
			$('#feedback_pop [name^=step_]').hide();
			$('#feedback_pop [name=step_4]').show();
			if((d.q_cat == 3)&&(d.t == 0||d.t == 1)){
				pointsPop.gen(20, '#feedback_pop [name=step_4] .alertText');
			}
			$('#feedback_pop .type li').removeClass('active');
			$('#feedback_pop .type li:first').addClass('active');
			$('#feedback_pop [name=content]').val('').focusout();
			$('#feedback_pop [name=uname]').val('').focusout();
			$('#feedback_pop [name=upassword]').val('');
			$('#feedback_pop [name=uemail]').val('').focusout();
		}
	};
	function initPopup() {
		$('.pop .close').click(function(){$(this).parent().parent().hide();});
	}
	//trim
	function trim(str) {
		var str = str.replace(/^\s\s*/, ''),
		ws = /\s/,
		i = str.length;
		while (ws.test(str.charAt(--i))){}
		return str.slice(0, i + 1);
	}
	$(function(){
		feedback.init();
		initPopup();
		resetFooter_2();
	});
	$(document).bind('click',function(ev){
	    var ev=ev||window.event;
	    var elem=ev.target||ev.srcElement;
	    resetFooter_2();
	});
	function getRootPath(){
		return window.location.protocol+'//'+window.location.host;
	}


</script>

</body></html>
